<?php
include($classes_path.'/class.mainItems.php');
$itemclass = new mainItems();
$itemclass->set_page($pageid);
$itemclass->set_id($article);

$mainItem = $itemclass->get_mainItems();
if(!empty($mainItem)) {
    foreach ($mainItem as $item) {
        ?>
<div class="main_item">
    <a href="page/2/news/article/<?php print($item['id'].'/'.htmlentities(strtolower(str_replace(" ", "-", $item['title']))).URL_EXTENSION); ?>"><img src="<?php print(DATA_PATH); ?>/images/posts/post_thumbs/<?php print($item['thumb']); ?>.gif" class="main_thumb" title="<?php print($item['title']); ?>" alt="<?php print($item['title']); ?>" /></a>
    <h2><a class="black" href="page/2/news/article/<?php print($item['id'].'/'.htmlentities(strtolower(str_replace(" ", "-", $item['title']))).URL_EXTENSION); ?>" title="<?php print($item['title']); ?>"><?php print($item['title']); ?></a></h2>
    <p class="nomarg"><?php print($item['summary']); ?></p>
</div><br />
    <?php
    }
}

add_banner();

?>

